package com.zxx.pattern.statePattern.state3.sample;

import android.content.Context;
import android.content.Intent;

/**
 * @author zxx on 2021/1/20
 */
public class LogoutState implements UserState {

    @Override
    public void forward(Context context) {
        gotoLoginActivity(context);
    }

    @Override
    public void comment(Context context) {
        gotoLoginActivity(context);
    }

    private void gotoLoginActivity(Context context) {
        Intent intent = new Intent(context, LoginState3Activity.class);
        context.startActivity(intent);
    }

}
